<?php
include("dbconnect.php");
if(!isset($_SESSION['email'])){
    header("Location : login.php");
    exit();
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>TechNova - The Leader of Future Technology</title>
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <div>
        <header>
            <nav>
                <ul>
                    <li><a href="1_homepage.php">Homepage</a></li>
                    <li><a href="2_services.php">Services</a></li>
                    <li><a href="3_aboutus.php">AboutUs</a></li>
                    <li><a href="4_contactus.php">ContactUs</a></li>
                    <li><a href="5_reviews.php">Reviews</a></li>
                    <li><a href="6_appointment.php">Appointment</a></li>
                    <li><a href="7_productorder.php">ProductOrder</a></li>
                </ul>
            </nav>
        </header>
    </div>
    <div class="update_form">
            <form action="insert_update.php" method="post">
                <fieldset>
                    <legend>Update Details</legend>
                    <table>
                        <thead>
                            <tr>
                                <td>User ID</td>
                                <td>Username</td>
                                <td>Email</td>
                                <td>Phone No</td>
                                <td>Password</td>
                            </tr>
                            <tr>
                                <td><?php echo $row['userid'];?></td>
                                <td><?php echo $row['username'];?></td>
                                <td><?php echo $row['email'];?></td>
                                <td><?php echo $row['phoneno'];?></td>
                                <td><?php echo $row['password'];?></td>
                            </tr>
                        </thead>
                    </table>
                    <a href="">Update</a>
                </fieldset>
            </form>
    </div>
</body>
</html>